﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Un4seen.Bass.AddOn.Tags;

namespace mxplay
{
    class PlayListSimple : List<string>
    {
        private int current_index=-1;

        public string NextEntry()
        {
            if (Count == 0) return string.Empty;


            int next_ind = current_index + 1;
            if (current_index >= Count - 1)
            {
                return string.Empty;
            }


            current_index = next_ind;
            return this[current_index];
        }

        public string PrevEntry()
        {
            if (Count == 0) return string.Empty;


            int next_ind = current_index--;
            if (current_index < 0)
            {
                return string.Empty;
            }


            current_index = next_ind;
            return this[current_index];
        }
    }
}
